package com.uit.se6.customui.android.navigation.tabview;

import java.util.List;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class TabsPagerAdapter extends FragmentPagerAdapter{

	private List<Fragment> listTab;
	public TabsPagerAdapter(FragmentManager fm, List<Fragment> listTab) {
		super(fm);
		this.listTab = listTab;
	}

	@Override
	public Fragment getItem(int position) {
		// TODO Auto-generated method stub					
		if(listTab==null){
			return null;
		}		
		return listTab.get(position);
	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		if(listTab==null){
			return 0;
		}
		else{
			return listTab.size();
		}
	}

	/**
	 * @param args
	 */
	

}
